package com.machine.filling.net.serialPort.receive;

import com.machine.filling.util.HexUtils;

/**
 * Created by Administrator on 2018/3/6 0006.
 * 加油结束
 */

public class Receive_EndFueling {
    private String version_1;
    private String gunNumHead_1;


    private String gunNum_2;//枪号
    private String cardNum_10;//卡号
    private String sheng_8;//用量
    private String realMoney_9;//实付金额
    private String receivedMoney_4;//应收金额
    private String erialNum_2;//流水号  凭证号
    private String unitPrice_2;//单价
    private String litersCumulative_4;//升累计
    private String moneyCumlative_4;//金额累计
    private String fuelingTime_7;//加油时间
    private String transactionType_1;//交易类型
    private String cardLevel_1;//卡级别
    private String cardType_1;//卡类型
    private String labelNum_6;//标签号

    public String getVersion_1() {
        return version_1;
    }

    public void setVersion_1(String version_1) {
        this.version_1 = version_1;
    }

    public String getGunNumHead_1() {
        return gunNumHead_1;
    }

    public void setGunNumHead_1(String gunNumHead_1) {
        this.gunNumHead_1 = gunNumHead_1;
    }

    public String getErialNum_2() {
        return erialNum_2;
    }

    public String getSheng_8() {
        return sheng_8;
    }

    public double getSheng(){
        return Double.parseDouble(HexUtils.ASCII2Str(sheng_8));
    }

    public double getRealMoney(){
        return Double.parseDouble(HexUtils.ASCII2Str(realMoney_9));
    }

    public String getMoneyCumlative_4() {
        return moneyCumlative_4;
    }

    public String getLitersCumulative_4() {
        return litersCumulative_4;
    }

    //-------------------------------------------------
    public void setGunNum_2(String gunNum_2) {
        this.gunNum_2 = gunNum_2;
    }

    public void setCardNum_10(String cardNum_10) {
        this.cardNum_10 = cardNum_10;
    }

    public void setSheng_8(String sheng_8) {
        this.sheng_8 = sheng_8;
    }

    public void setRealMoney_9(String realMoney_9) {
        this.realMoney_9 = realMoney_9;
    }

    public void setReceivedMoney_4(String receivedMoney_4) {
        this.receivedMoney_4 = receivedMoney_4;
    }

    public String getReceivedMoney_4() {
        return receivedMoney_4;
    }

    public void setErialNum_2(String erialNum_2) {
        this.erialNum_2 = erialNum_2;
    }

    public void setUnitPrice_2(String unitPrice_2) {
        this.unitPrice_2 = unitPrice_2;
    }

    public void setLitersCumulative_4(String litersCumulative_4) {
        this.litersCumulative_4 = litersCumulative_4;
    }

    public void setMoneyCumlative_4(String moneyCumlative_4) {
        this.moneyCumlative_4 = moneyCumlative_4;
    }

    public void setFuelingTime_7(String fuelingTime_7) {
        this.fuelingTime_7 = fuelingTime_7;
    }

    public void setTransactionType_1(String transactionType_1) {
        this.transactionType_1 = transactionType_1;
    }

    public void setCardLevel_1(String cardLevel_1) {
        this.cardLevel_1 = cardLevel_1;
    }

    public void setCardType_1(String cardType_1) {
        this.cardType_1 = cardType_1;
    }

    public void setLabelNum_6(String labelNum_6) {
        this.labelNum_6 = labelNum_6;
    }
}
